package me.zhengjie.modules.website.domain;

import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import lombok.Data;
import me.zhengjie.base.BaseEntity;

import javax.persistence.*;

/**
 *
 *
 * @author system
 * @since 2024-10-23 22:27:03
 */
@Entity
@Data
@Table(name = "conversation_table" )
@ApiModel(value = "ConversationTable", description = " ")
public class ConversationTable  extends BaseEntity implements Serializable{

    private static final long serialVersionUID=1L;

    /**
     *
     */
    @Column(name = "conversation_id" )
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long conversationId;

    /**
     *
     */
    @Column(name = "feedback_id" )
    @NotBlank(message = "【 】不能为空")
    private Integer feedbackId;

    /**
     *
     */
    @Column(name = "sender_id" )
    @NotBlank(message = "【 】不能为空")
    private Integer senderId;

    /**
     *
     */
    @Column(name = "sender_type" )
    @NotBlank(message = "【 】不能为空")
    private String senderType;

    /**
     *
     */
    @Column(name = "sent_time" )
    @NotBlank(message = "【 】不能为空")
    private Date sentTime;

    /**
     *
     */
    @Column(name = "message_content" )
    @NotBlank(message = "【 】不能为空")
    private String messageContent;

    /**
     *
     */
    @Column(name = "is_read" )
    @NotBlank(message = "【 】不能为空")
    private Boolean isRead;


}